import pymysql

# db = pymysql.connect(host="localhost", user='root', password='020308',database="xjgl", charset="utf8")
# cursor = db.cursor()
# student_no = '2020123124'
# sql = """SELECT * FROM student LEFT JOIN success ON student.s_no=success.s_no where student.s_no=%s
#                 UNION SELECT * FROM student RIGHT JOIN success ON student.s_no=success.s_no where success.s_no=%s;
#             """
# cursor.execute(sql,(student_no,student_no))
# row = cursor.fetchone()
# cursor.execute('SELECT d_name from department where d_no=%s', row[5])
# d_name = cursor.fetchone()[0]
# print(row)
# print(d_name)
# d_sql = "select d_no from department where d_name=%s"
# cursor.execute(d_sql, '电子与信息工程学院')
# row = cursor.fetchone()[0]
# print(row)
# sql = "insert into class values (%s,%s,%s,%s)"
# list = ['10000002','大数据技术与应用2班',48,'10000001']
# cursor.execute(sql,list)
# db.commit()
def aaa(a):
    if a == 0:
        return False
    else:
        return True
print(aaa(0))